package io.renren.modules.areainfos.service;

import io.renren.common.utils.R;
import io.renren.modules.areainfos.entity.AreainfosEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author 
 * @email 
 * @date 2018-10-30 17:39:18
 */
public interface AreainfosService {
	//根据地区号查询id
	String queryAreaidByColumnId(String columnId);

	R isExistArea(Integer columnid);

	AreainfosEntity queryObject(Integer columnid);
	
	List<AreainfosEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(AreainfosEntity areainfos);
	
	void update(AreainfosEntity areainfos);
	
	void delete(Integer columnid);
	
	void deleteBatch(Integer[] columnids);

	List<AreainfosEntity> queryNotPagerList();

	int isParentNode(Integer columnid);

	List<AreainfosEntity> apiQueryByParentId(Integer parentid);

	List<AreainfosEntity> queryByParentId(Integer parentid);
}
